package com.aphrodite.io;

import java.io.IOException;
import java.io.Writer;

/**
 * Write text to a character-output stream.
 */
public class BufferedWriter extends Writer {
	Writer out;

	/** Costructs a new BufferedWriter. */
	public BufferedWriter(Writer out) {
		super(out);
		this.out = out;
	}

	/** Close the stream. */
	public void close() throws IOException {
		out.close();
	}

	/** Flush the stream. */
	public void flush() throws IOException {
		out.flush();
	}

	/** Write a portion of an array of characters. */
	public void write(char[] cbuf, int off, int len) throws IOException {
		out.write(cbuf, off, len);
	}
}